// 在这里封装请求的函数
import request from '@/utils/request'

// 注册api
export const register = (data) => {
  return request.post('/h5/user/register', data)
}

// 登录api
export const login = (data) => {
  return request.post('/h5/user/login', data)
}
// 获取用户信息
export const getUserInfo = () => {
  return request.get('/h5/user/currentUser')
}
